var t = getApp();

Page({
    data: {
        id: 0,
        qrcode: ""
    },
    onLoad: function(t) {
        this.data.id = t.id, wx.setNavigationBarTitle({
            title: t.name
        }), this.getData();
    },
    onReady: function() {},
    onShow: function() {},
    getData: function() {
        var n = this, e = t.getNetAddresss("plugin.customer-development.Frontend.controllers.write-off.index");
        t._getNetWork({
            url: e,
            data: {
                id: this.data.id
            },
            success: function(e) {
                var o = e.data;
                if (1 != o.result) return t.tips(o.msg);
                n.setData({
                    qrcode: o.data
                }), console.log(o);
            }
        });
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});